<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="author" content="GoJun" />
	
	
	
	<title>Xcode 常用的快捷键 ｜ GoJun</title>
	
    
    
    <meta name="description" content="常用 功能 快捷键 快速打开某个文件 command &#43; shift &#43; O 快速跳转到某一行 command &#43; L 上移一行 option &#43; command &#43; ] 下移一行 option &#43; command &#43; [ .h文件与.m文件之间的快速切换 control &#43; command &#43; ↑ 或 ↓ 返回至上一次光标位置 control &#43; command &#43; ← 或 → 收起/展开方法代码块 option" />
    

    
    
    <meta name="keywords" content="Hugo, theme, zozo" />
    

	
    
    <link rel="shortcut icon" href="https://gojun.me/images/favicon.ico" />

    <link rel="stylesheet" type="text/css" media="screen" href="https://gojun.mecss/normalize.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="https://cdn.jsdelivr.net/npm/animate.css@4.1.0/animate.min.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="https://gojun.me/css/zozo.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="https://gojun.me/css/highlight.css" />

    
    
</head>

<body>
    <div class="main animate__animated animate__fadeInDown">
        <div class="nav_container animated fadeInDown">
    <div class="site_nav" id="site_nav">
        <ul>
            
            <li>
                <a href="/">Home</a>
            </li>
            
            <li>
                <a href="/posts/">Archive</a>
            </li>
            
            <li>
                <a href="/tags/">Tags</a>
            </li>
            
            <li>
                <a href="/projects/">Projects</a>
            </li>
            
        </ul>
    </div>
    <div class="menu_icon">
        <a id="menu_icon"><i class="ri-menu-line"></i></a>
    </div>
</div>
        <div class="header animated fadeInDown">
    <div class="site_title_container">
        <div class="site_title">
            <h1>
                <a href="https://gojun.me">
                    <span>GoJun</span>
                </a>
            </h1>
        </div>
        <div class="description">
            <p class="sub_title">为向往生活努力奋斗！</p>
            <div class="my_socials">
                
                
                <a href="https://github.com/freelander" title="github" target="_blank"><i class="ri-github-fill"></i></a>
                
                
                <a href="https://gojun.me/index.xml" type="application/rss+xml" title="rss" target="_blank"><i
                        class="ri-rss-fill"></i></a>
            </div>
        </div>
    </div>
</div>
        <div class="content">
            <div class="post_page">
                <div class="post animate__animated animate__fadeInDown">
                    <div class="post_title post_detail_title">
                        <h2><a href='/posts/xcode-hot-key/'>Xcode 常用的快捷键</a></h2>
                        <span class="date">2019.07.31</span>
                    </div>
                    <div class="post_content markdown"><h2 id="常用">常用</h2>
<table>
<thead>
<tr>
<th>功能</th>
<th>快捷键</th>
</tr>
</thead>
<tbody>
<tr>
<td>快速打开某个文件</td>
<td><code>command + shift + O</code></td>
</tr>
<tr>
<td>快速跳转到某一行</td>
<td><code>command + L</code></td>
</tr>
<tr>
<td>上移一行</td>
<td><code>option + command + ]</code></td>
</tr>
<tr>
<td>下移一行</td>
<td><code>option + command + [</code></td>
</tr>
<tr>
<td>.h文件与.m文件之间的快速切换</td>
<td><code>control + command + ↑ 或 ↓</code></td>
</tr>
<tr>
<td>返回至上一次光标位置</td>
<td><code>control + command + ← 或 →</code></td>
</tr>
<tr>
<td>收起/展开方法代码块</td>
<td><code>option + command + ← 或 → </code></td>
</tr>
<tr>
<td>快速切换左边导航区域</td>
<td><code>command + (1 到 8都可以)</code></td>
</tr>
<tr>
<td>光标上移一行或下移一行</td>
<td><code>control + N 或 P</code></td>
</tr>
<tr>
<td>在导航器中定位打开的文件</td>
<td><code>command + shift + J</code></td>
</tr>
<tr>
<td>快速保存所有文件</td>
<td><code>command + option + s</code></td>
</tr>
</tbody>
</table>
<h2 id="应用程序编译和清理">应用程序编译和清理</h2>
<table>
<thead>
<tr>
<th>功能</th>
<th>快捷键</th>
</tr>
</thead>
<tbody>
<tr>
<td>运行 App</td>
<td><code>Command + R</code></td>
</tr>
<tr>
<td>清除工程</td>
<td><code> Command + Shift + K</code></td>
</tr>
<tr>
<td>构建应用程序</td>
<td><code>Command + B</code></td>
</tr>
<tr>
<td>停止运行</td>
<td><code>Command + .</code></td>
</tr>
<tr>
<td>断点调试</td>
<td><code> F6 单步调试、F7 跳入、F8 继续</code></td>
</tr>
</tbody>
</table>
<h2 id="文档和帮助">文档和帮助</h2>
<table>
<thead>
<tr>
<th>功能</th>
<th>快捷键</th>
</tr>
</thead>
<tbody>
<tr>
<td>文档和参考</td>
<td><code>Command + Shift + 0 (Zero)</code></td>
</tr>
</tbody>
</table>
</div>
                    <div class="post_footer">
                        
                        <div class="meta">
                            <div class="info">
                                <span class="field tags">
                                    <i class="ri-stack-line"></i>
                                    
                                    <a href="https://gojun.me/tags/ios/">iOS</a>
                                    
                                    <a href="https://gojun.me/tags/xcode/">Xcode</a>
                                    
                                </span>
                            </div>
                        </div>
                        
                    </div>
                </div>
                
                
                <div class="doc_comments"></div>
                
            </div>
        </div>
    </div>
    <a id="back_to_top" href="#" class="back_to_top"><i class="ri-arrow-up-s-line"></i></a>
    <footer class="footer">
    <div class="footer_slogan">
        <span></span>
    </div>
</footer>
    <script src="https://gojun.me/js/jquery-3.5.1.min.js"></script>
<link href="https://gojun.me/css/fancybox.min.css" rel="stylesheet">
<script src="https://gojun.me/js/fancybox.min.js"></script>
<script src="https://gojun.me/js/zozo.js"></script>


<script type="text/javascript" async
    src="https://cdn.bootcss.com/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
        MathJax.Hub.Config({
            tex2jax: {
                inlineMath: [['$', '$'], ['\\(', '\\)']],
                displayMath: [['$$', '$$'], ['\[\[', '\]\]']],
                processEscapes: true,
                processEnvironments: true,
                skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
                TeX: {
                    equationNumbers: { autoNumber: "AMS" },
                    extensions: ["AMSmath.js", "AMSsymbols.js"]
                }
            }
        });

        MathJax.Hub.Queue(function () {
            
            
            
            var all = MathJax.Hub.getAllJax(), i;
            for (i = 0; i < all.length; i += 1) {
                all[i].SourceElement().parentNode.className += ' has-jax';
            }
        });
    </script>

<style>
    code.has-jax {
        font: inherit;
        font-size: 100%;
        background: inherit;
        border: inherit;
        color: #515151;
    }
</style>



<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
	window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
	ga('create', 'UA-142037913-1', 'auto');
	
	ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>

</body>

</html>